$(function(){
	if($('#file_upload').length > 0) {
		var sessionId = $('#jsessionId').val();
		var url = rootPath+'/manage/courseTemplate/uploadTemplate/exec;jsessionid='+ sessionId + '?batchId='+batchId+'&gradeNo='+gradeNo+'&courseNo='+courseNo+'&zfmType='+zfmType;
		uploadifyFj({
    		contextPath: rootPath,
    		url: url,
    		sourcePath:'',
    		multi : false,
    		buttonText:'选择文件',
    		//fileTypeDesc:'支持的格式：tif,gif,jpg,png,jpeg,bmp',
    		fileTypeDesc:'支持的格式：tif',
    		fileSizeLimit:'10MB',
    		//fileTypeExts:'*.tif;*.TIF;*.gif;*.jpg;*.png;*.jpeg;*.bmp',
    		fileTypeExts:'*.tif;*.TIF',
    		queueSizeLimit:1,
    		uploadcallback:function(file, data, response){}
    	});
	}
});

/*function saveCallBack(){
	layer.close(upload_page);
	location.href = rootPath + "/manage/courseTemplate/";
}*/